{extend name="adminblue/base" /}
{block name="resources"/}
<style>
.ns-main{margin-top:0px;}
</style>
{/block}
{block name="main"}
<div class="set-style">
	<h4>直推奖励</h4>
	<dl>
		<dt>直推奖励：</dt>
		<dd>
			<input id="tuiguang_push" type="number" value="{$website.tuiguang_push}" class="input-common" /> %
		</dd>
	</dl>

	
	<dl>
		<dt></dt>
		<dd><button class="btn-common btn-big" onclick="setConfigAjax();">保存</button></dd>
	</dl>
</div>
<script src="__STATIC__/js/ajax_file_upload.js" type="text/javascript"></script>
<script src="__STATIC__/js/file_upload.js" type="text/javascript"></script>
<script>
//图片上传


function setConfigAjax() {
	var tuiguang_push = $("#tuiguang_push").val();

	
	$.ajax({
		type : "post",
		url : "{:__URL('ADMIN_MAIN/config/tuiguang')}",
		data : {
			'tuiguang_push' : tuiguang_push,


		},
		success : function(data) {
			if (data["code"] > 0) {
				showTip(data["message"],"success");
				window.location.href = "{:__URL('ADMIN_MAIN/config/tuiguang')}";
			} else {
				showTip(res.message,"error");
			}
		}
	});
}
</script>
{/block}